package proxy;


public class ProxyTest {

    public static void main(String[] args) {
        UserServiceImpl userServiceImpl = new UserServiceImpl();
        ProxyInvocationHandler proxyInvocationHandler = new ProxyInvocationHandler();
        proxyInvocationHandler.setTarget(userServiceImpl);
        UserService proxy = (UserService) proxyInvocationHandler.getProxy();
        proxy.add();
    }

}
